package com.loong.loong.hik.api.entity.door;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 可视对讲事件对象特征属性
 * @author jinyiang
 * @date 2023/3/22 10:03
 */
@Data
@TableName("hik_door_intercom_event")
public class HikDoorIntercomEvent {


	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "事件ID")
	@TableId(value = "event_id", type = IdType.ASSIGN_ID)
	@NotNull(message = "事件ID不能为空")
	private String eventId;

	@ApiModelProperty(value = "事件类型码")
	@TableField("event_type")
	@NotNull(message = "事件类型码不能为空")
	private Integer eventType;

	@ApiModelProperty(value = "事件名称")
	@TableField("event_name")
	@NotBlank(message = "事件名称不能为空")
	private String eventName;

	@ApiModelProperty(value = "时间")
	@TableField("event_time")
	@NotNull(message = "时间不能为空")
	private String eventTime;

	@ApiModelProperty(value = "设备唯一标识")
	@TableField("device_index_code")
	private String deviceIndexCode;

	@ApiModelProperty(value = "设备名称")
	@TableField("device_name")
	private String deviceName;

	@ApiModelProperty(value = "卡号")
	@TableField("event_card")
	private String eventCard;

	@ApiModelProperty(value = "人员ID")
	@TableField("person_id")
	private String personId;

	@ApiModelProperty(value = "人员姓名")
	@TableField("person_name")
	private String personName;

	@ApiModelProperty(value = "部门ID")
	@TableField("org_id")
	private String orgId;

	@ApiModelProperty(value = "部门名称")
	@TableField("org_name")
	private String orgName;

	@ApiModelProperty(value = "抓拍图片URL")
	@TableField("pic_url")
	private String picUrl;
	@ApiModelProperty(value = "抓拍图片BASE64")
	@TableField("pic_data")
	private String picData;

	@ApiModelProperty(value = "备注信息")
	@TableField("extend_json")
	private String extendJson;

	@ApiModelProperty(value = "出入类型")
	@TableField("in_and_out")
	private String inAndOut;

}
